namespace GanagroLiteData
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("GANADO")]
    public partial class GANADO
    {
        public GANADO()
        {
            OPERACIONES = new HashSet<OPERACIONE>();
            PESAJES = new HashSet<PESAJE>();
        }

        [StringLength(10)]
        public string FINCA { get; set; }

        [Key]
        [StringLength(15)]
        public string CODIGO { get; set; }

        [Required]
        [StringLength(1)]
        public string SEXO { get; set; }

        public short RAZA1 { get; set; }

        public short? RAZA2 { get; set; }

        public float? PORRAZA1 { get; set; }

        public float? PORRAZA2 { get; set; }

        public short COLOR { get; set; }

        public short? PARTOS { get; set; }

        public short? ESTADO { get; set; }

        public DateTime? FECHANAC { get; set; }

        [StringLength(15)]
        public string MADRE { get; set; }

        public DateTime? FECHADES { get; set; }

        [StringLength(3)]
        public string MARCA { get; set; }

        [StringLength(250)]
        public string COMENTARIO { get; set; }

        public short? LOTE { get; set; }

        public short? PESO { get; set; }

        public short? PesoDestete { get; set; }

        public DateTime? FECHA_ENTRADA { get; set; }

        public byte Activo { get; set; }

        public DateTime? FECHASAL { get; set; }

        public byte? TIPOSALIDA { get; set; }

        [StringLength(10)]
        public string Tatuaje { get; set; }

        public virtual COLORE COLORE { get; set; }

        public virtual ESTADO ESTADO1 { get; set; }

        public virtual FINCA FINCA1 { get; set; }

        public virtual ICollection<OPERACIONE> OPERACIONES { get; set; }

        public virtual ICollection<PESAJE> PESAJES { get; set; }

        public virtual RAZA RAZA { get; set; }

        public virtual LOTE LOTE1 { get; set; }

        public virtual RAZA RAZA3 { get; set; }
    }
}
